package com.example.demo.aspect;

import com.example.demo.javatest.JavaValueTransTest;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.Arrays;

/**
 * Created by liujiahao on 2018/11/29.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = ApspectConfig.class)
public class Tests {
    @Autowired
    AspectTest aspectTest;
    @Test
    public void  fun(){
        InputArgs in=new InputArgs();
        in.setMessage("123456");
        aspectTest.tt(in);
        aspectTest.tt1(new JavaValueTransTest.Model(1,"name"));
        aspectTest.tt2(Arrays.asList(1,2,1));
    }
}
